package com.yanyeori.seata.controller;

import com.yanyeori.framework.core.model.WebResponse;
import com.yanyeori.seata.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenkuan
 * @version v1.0
 * @desc 测试接口
 * @date 20/8/07 10:29
 */
@RestController
@RequestMapping("/testController")
public class TestController {

    @Autowired
    private TestService testService;

    @PostMapping("/test")
    public WebResponse test() {
        return testService.test();
    }
}
